package com.learn.spring.java_config;

import com.learn.spring.services.Client;
import com.learn.spring.services.Service;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wangxing
 * @version 2020/5/8 12:47 Administrator
 */
@Configuration
public class SpringConfig {
    @Bean
    public Service service() {
        return new Service();
    }

    @Bean
    public Client client() {
        return new Client();
    }
}
